package com.horoscope.astrology.zodiac.signs.free.utils;

import android.widget.ImageView;
import com.horoscope.astrology.zodiac.signs.free.R;

public class FrameAnimationUtils {
    public static void startBall(ImageView mImage) {
        AnimationManager animationManager = AnimationManager.getInstance().initDrawableList(
                50,
                R.drawable.img_magic_ball_000,
                R.drawable.img_magic_ball_002,
                R.drawable.img_magic_ball_004,
                R.drawable.img_magic_ball_006,
                R.drawable.img_magic_ball_008,
                R.drawable.img_magic_ball_010,
                R.drawable.img_magic_ball_012,
                R.drawable.img_magic_ball_014,
                R.drawable.img_magic_ball_016,
                R.drawable.img_magic_ball_018,
                R.drawable.img_magic_ball_020,
                R.drawable.img_magic_ball_022,
                R.drawable.img_magic_ball_024,
                R.drawable.img_magic_ball_026,
                R.drawable.img_magic_ball_028,
                R.drawable.img_magic_ball_030,
                R.drawable.img_magic_ball_032,
                R.drawable.img_magic_ball_034,
                R.drawable.img_magic_ball_036,
                R.drawable.img_magic_ball_038,
                R.drawable.img_magic_ball_040,
                R.drawable.img_magic_ball_042,
                R.drawable.img_magic_ball_044,
                R.drawable.img_magic_ball_046,
                R.drawable.img_magic_ball_048,
                R.drawable.img_magic_ball_050,
                R.drawable.img_magic_ball_052,
                R.drawable.img_magic_ball_054,
                R.drawable.img_magic_ball_056,
                R.drawable.img_magic_ball_058,
                R.drawable.img_magic_ball_060,
                R.drawable.img_magic_ball_062,
                R.drawable.img_magic_ball_064,
                R.drawable.img_magic_ball_066,
                R.drawable.img_magic_ball_068,
                R.drawable.img_magic_ball_070,
                R.drawable.img_magic_ball_072,
                R.drawable.img_magic_ball_074,
                R.drawable.img_magic_ball_076,
                R.drawable.img_magic_ball_078,
                R.drawable.img_magic_ball_080,
                R.drawable.img_magic_ball_082,
                R.drawable.img_magic_ball_084,
                R.drawable.img_magic_ball_086,
                R.drawable.img_magic_ball_088,
                R.drawable.img_magic_ball_090,
                R.drawable.img_magic_ball_091,
                R.drawable.img_magic_ball_092,
                R.drawable.img_magic_ball_093,
                R.drawable.img_magic_ball_094,
                R.drawable.img_magic_ball_095,
                R.drawable.img_magic_ball_096,
                R.drawable.img_magic_ball_097,
                R.drawable.img_magic_ball_098,
                R.drawable.img_magic_ball_099,
                R.drawable.img_magic_ball_100,
                R.drawable.img_magic_ball_101,
                R.drawable.img_magic_ball_102,
                R.drawable.img_magic_ball_103,
                R.drawable.img_magic_ball_104,
                R.drawable.img_magic_ball_105,
                R.drawable.img_magic_ball_106,
                R.drawable.img_magic_ball_107
//                R.drawable.img_magic_ball_055,
//                R.drawable.img_magic_ball_056,
//                R.drawable.img_magic_ball_057,
//                R.drawable.img_magic_ball_058,
//                R.drawable.img_magic_ball_059,
//                R.drawable.img_magic_ball_060,
//                R.drawable.img_magic_ball_061,
//                R.drawable.img_magic_ball_062,
//                R.drawable.img_magic_ball_063,
//                R.drawable.img_magic_ball_064,
//                R.drawable.img_magic_ball_065,
//                R.drawable.img_magic_ball_066,
//                R.drawable.img_magic_ball_067,
//                R.drawable.img_magic_ball_068,
//                R.drawable.img_magic_ball_069,
//                R.drawable.img_magic_ball_070,
//                R.drawable.img_magic_ball_071,
//                R.drawable.img_magic_ball_072,
//                R.drawable.img_magic_ball_073,
//                R.drawable.img_magic_ball_074,
//                R.drawable.img_magic_ball_075,
//                R.drawable.img_magic_ball_076,
//                R.drawable.img_magic_ball_077,
//                R.drawable.img_magic_ball_078,
//                R.drawable.img_magic_ball_079,
//                R.drawable.img_magic_ball_080,
//                R.drawable.img_magic_ball_081,
//                R.drawable.img_magic_ball_082,
//                R.drawable.img_magic_ball_083,
//                R.drawable.img_magic_ball_084,
//                R.drawable.img_magic_ball_085,
//                R.drawable.img_magic_ball_086,
//                R.drawable.img_magic_ball_087,
//                R.drawable.img_magic_ball_088,
//                R.drawable.img_magic_ball_089,
//                R.drawable.img_magic_ball_090,
//                R.drawable.img_magic_ball_091,
//                R.drawable.img_magic_ball_092,
//                R.drawable.img_magic_ball_093,
//                R.drawable.img_magic_ball_094,
//                R.drawable.img_magic_ball_095,
//                R.drawable.img_magic_ball_096,
//                R.drawable.img_magic_ball_097,
//                R.drawable.img_magic_ball_098,
//                R.drawable.img_magic_ball_099,
//                R.drawable.img_magic_ball_100,
//                R.drawable.img_magic_ball_101,
//                R.drawable.img_magic_ball_102,
//                R.drawable.img_magic_ball_103,
//                R.drawable.img_magic_ball_104,
//                R.drawable.img_magic_ball_105,
//                R.drawable.img_magic_ball_106,
//                R.drawable.img_magic_ball_107
        ).into(mImage);
        animationManager.start();
    }

    public static void startFortune(ImageView mImage) {
        AnimationManager animationManager = AnimationManager.getInstance().initDrawableList(
                30,
                R.drawable.cookies4_00000,
                R.drawable.cookies4_00001,
                R.drawable.cookies4_00002,
                R.drawable.cookies4_00003,
                R.drawable.cookies4_00004,
                R.drawable.cookies4_00005,
                R.drawable.cookies4_00006,
                R.drawable.cookies4_00007,
                R.drawable.cookies4_00008,
                R.drawable.cookies4_00009,
                R.drawable.cookies4_00010,
                R.drawable.cookies4_00011,
                R.drawable.cookies4_00012,
                R.drawable.cookies4_00013,
                R.drawable.cookies4_00014,
                R.drawable.cookies4_00015,
                R.drawable.cookies4_00016,
                R.drawable.cookies4_00017,
                R.drawable.cookies4_00018,
                R.drawable.cookies4_00019,
                R.drawable.cookies4_00020,
                R.drawable.cookies4_00021,
                R.drawable.cookies4_00022,
                R.drawable.cookies4_00023,
                R.drawable.cookies4_00024,
                R.drawable.cookies4_00025,
                R.drawable.cookies4_00026,
                R.drawable.cookies4_00027,
                R.drawable.cookies4_00028,
                R.drawable.cookies4_00029,
                R.drawable.cookies4_00030,
                R.drawable.cookies4_00031,
                R.drawable.cookies4_00032,
                R.drawable.cookies4_00033,
                R.drawable.cookies4_00034,
                R.drawable.cookies4_00035,
                R.drawable.cookies4_00036,
                R.drawable.cookies4_00037,
                R.drawable.cookies4_00038,
                R.drawable.cookies4_00039,
                R.drawable.cookies4_00040,
                R.drawable.cookies4_00041,
                R.drawable.cookies4_00042,
                R.drawable.cookies4_00043,
                R.drawable.cookies4_00044,
                R.drawable.cookies4_00045,
                R.drawable.cookies4_00046,
                R.drawable.cookies4_00047,
                R.drawable.cookies4_00048,
                R.drawable.cookies4_00049,
                R.drawable.cookies4_00050,
                R.drawable.cookies4_00051,
                R.drawable.cookies4_00052,
                R.drawable.cookies4_00053,
                R.drawable.cookies4_00054,
                R.drawable.cookies4_00055,
                R.drawable.cookies4_00056,
                R.drawable.cookies4_00057,
                R.drawable.cookies4_00058,
                R.drawable.cookies4_00059,
                R.drawable.cookies4_00060,
                R.drawable.cookies4_00061,
                R.drawable.cookies4_00062,
                R.drawable.cookies4_00063,
                R.drawable.cookies4_00064,
                R.drawable.cookies4_00065,
                R.drawable.cookies4_00066,
                R.drawable.cookies4_00067,
                R.drawable.cookies4_00068,
                R.drawable.cookies4_00069,
                R.drawable.cookies4_00070,
                R.drawable.cookies4_00071,
                R.drawable.cookies4_00072,
                R.drawable.cookies4_00073,
                R.drawable.cookies4_00074,
                R.drawable.cookies4_00075,
                R.drawable.cookies4_00076,
                R.drawable.cookies4_00077,
                R.drawable.cookies4_00078,
                R.drawable.cookies4_00079,
                R.drawable.cookies4_00080,
                R.drawable.cookies4_00081,
                R.drawable.cookies4_00082,
                R.drawable.cookies4_00083,
                R.drawable.cookies4_00084,
                R.drawable.cookies4_00085,
                R.drawable.cookies4_00086,
                R.drawable.cookies4_00087,
                R.drawable.cookies4_00088,
                R.drawable.cookies4_00089,
                R.drawable.cookies4_00090,
                R.drawable.cookies4_00091,
                R.drawable.cookies4_00092,
                R.drawable.cookies4_00093,
                R.drawable.cookies4_00094,
                R.drawable.cookies4_00095,
                R.drawable.cookies4_00096,
                R.drawable.cookies4_00097,
                R.drawable.cookies4_00098,
                R.drawable.cookies4_00099,
                R.drawable.cookies4_00100
        ).into(mImage);
        animationManager.start();
    }
}






















































